package com.example.demo01.exception;

import lombok.Data;

@Data
public class ZgcException extends RuntimeException {
    private static final long serialVersionUID = 6526948331294313311L;
    private String errorCode;
    private String errorMsg;

    public ZgcException(ZgcError zgcError) {
        this.errorCode = zgcError.getCode();
        this.errorMsg = zgcError.getInfo();
    }


}
